import { Navigate } from "react-router-dom";
import HomePage from '../views/homePage'
import Login from "../Login/login"
import React from 'react'
import UserRight from '../views/userRight'
import Happy from '../views/Happy' 
import FineFood from "../views/FineFood"  
import Travel from "../views/Travel" 
import Pit from "../views/Pit" 
import Live from "../views/Live" 
import Love from "../views/Love"
import Home from '../views/Home'
import NoPermission from '../views/NoPermission'
export default [
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/homePage',
        element: <HomePage />,
        children: [
            {
                path: '/homePage/Home',
                element: <Home />,
            },
            {
                path: '/homePage/userRight',
                element: <UserRight />,
            },
            {
                path: '/homePage/happy',
                element: <Happy />,
            },
            {
                path: '/homePage/fineFood',
                element: <FineFood />,
            },
            {
                path: '/homePage/travel',
                element: <Travel />,
            },
            {
                path: '/homePage/Pit',
                element: <Pit />,
            },
            {
                path: '/homePage/Live',
                element: <Live />,
            },
            {
                path: '/homePage/Love',
                element: <Love />,
            },
            {
                path: '/homePage/NoPermission',
                element: <NoPermission />
            },
           
        ]
    },
    {
        path: '/',
        element: <Navigate to='/login' />
    }
]